package xmarti.vacaxm.beans.maintenance;

import java.util.Objects;



public class Bull extends Animal implements java.io.Serializable{
    private String name; 

    public Bull(){
        
    }
    public Bull(String name){
        this.name=name;
    }
    public Bull(Country country, String controlCode, Area areaCode, String animalCode1, String animalCode2) {
        super(country, controlCode, areaCode, animalCode1, animalCode2);
    }
    public Bull(Country country, String controlCode, Area areaCode, String animalCode1, String animalCode2, String name) {
        super(country, controlCode, areaCode, animalCode1, animalCode2);
        this.name=name; 
    }
    
   

//    @Override
//    public int hashCode() {
//        return super.hashCode();
//    }


    /**
     * @return the name
     */
    @Override
    public String getName() {
            return name;
    }

    /**
     * @param name the name to set
     */
    @Override
    public void setName(String name) {
            this.name = name;
    }
    
    @Override
    public String getCodeAnimalToString(){
        return super.toString();
    }
    @Override
    public String toString(){
        return this.name; 
    }

    
}
